//
//  CancelReason.h
//  YaoHeAPP
//
//  Created by mac on 15/12/21.
//  Copyright © 2015年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface XiaDan : UIView<UIGestureRecognizerDelegate,UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate>
{
    UIView *_bgView;
    NSString*_stringRow;//将选中字符串拼接成完整的一个字
    UILabel*messageL;//显示原因的label
    NSString*_oderID;
    UITextField*_dunText;//成交量吨的输入框
    UITextField*_priceAll;//显示总额
    BOOL  btnNOORYES;//按钮是否是选中状态
    UIButton*selectZJ;//按钮
    UILabel*dun;//单位
    UIButton*unitBtn;//选择单位的按钮
    UIView*unitView;//放置单位的view
    UITableView*_tableView;//表格，展示单位
    NSArray*_tableAry;//单位数组
}
@property (nonatomic, strong) void(^SelectBlock)(NSString *selectIndexStr);

@property (nonatomic, strong) NSString *titleStr;

@property(nonatomic,copy)NSString *idStr;//求购商品ID

@property(nonatomic,assign)NSInteger rowTeger;

@property(nonatomic,copy)NSString*pric;//接收传过来的价格
@property(nonatomic,copy)NSString*unit;//传过来的单位
@property(nonatomic,copy)NSString*classTypeName;//铝材、板材、卷材、型材、管材
@property(nonatomic,copy)NSString*leiMing;//传过来的品名，用来判断铝材该使用哪个单位

//大小
- (id)initWithFrame:(CGRect)frame;
//展示选择器
+(void)showPickerView:(UIView *)selfView withTitle:(NSString*)titleString classType:(NSString*)pinMing leiMing:(NSString*)leiMing oderID:(NSString*)oID unit:(NSString*)unit andSelectBlock:(void (^)(NSString *))selectRow;



@end







